package org.cn.osiris.system.domain;


import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.cn.osiris.basic.domain.BaseDomain;
import org.cn.osiris.org.domain.Department;

import java.util.ArrayList;
import java.util.List;


@Data
public class Menu extends BaseDomain {

    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer index;
    private Long parentId;
    //保存当前父级菜单信息
    private Menu parent;
    private String intro;
    private Boolean state;

    //当前对象的儿子
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children = new ArrayList<>();


}
